import java.util.Scanner;

public class 结婚 {
    public static void main(String[] args) {
        System.out.println("请输入小王的性别");
        Scanner sc = new Scanner(System.in);
        char sex = sc.next().charAt(0);
        System.out.println("请输入小张的性别");
        Scanner sc2 = new Scanner(System.in);
        char sex2 = sc.next().charAt(0);
        if (sex == sex2) {
            System.out.println("对不起，你们不能结婚");
        } else {
            System.out.println("你们可以结婚");
        }
    }
}

